<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>CSS | H5学习笔记</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        <meta name="author" content="逍遥派">
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-expandable-chapters-interactive/expandable-chapters.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../md/css/selector.html" />
    
    
    <link rel="prev" href="../../md/html/input/button.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="2"
        data-chapter-title="CSS"
        data-filepath="md/css/css.md"
        data-basepath="../.."
        data-revision="Tue Dec 12 2017 18:04:15 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="md/html/html.html">
            
                
                    <a href="../../md/html/html.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="md/html/know.html">
            
                
                    <a href="../../md/html/know.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        认识页面、以及行内元素和块级元素
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="md/html/a.html">
            
                
                    <a href="../../md/html/a.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.1.</b>
                        
                        a标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="md/html/path.html">
            
                
                    <a href="../../md/html/path.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.2.</b>
                        
                        文件路径
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="md/html/img.html">
            
                
                    <a href="../../md/html/img.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.3.</b>
                        
                        img标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.4" data-path="md/html/area.html">
            
                
                    <a href="../../md/html/area.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.4.</b>
                        
                        锚点和热区
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.5" data-path="md/html/table.html">
            
                
                    <a href="../../md/html/table.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.5.</b>
                        
                        表格
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.6" data-path="md/html/media.html">
            
                
                    <a href="../../md/html/media.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.6.</b>
                        
                        音频与视频
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.7" data-path="md/html/list.html">
            
                
                    <a href="../../md/html/list.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.7.</b>
                        
                        列表
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.8" data-path="md/html/jframe.html">
            
                
                    <a href="../../md/html/jframe.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.8.</b>
                        
                        内嵌页面
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.9" data-path="md/html/icon.html">
            
                
                    <a href="../../md/html/icon.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.9.</b>
                        
                        网页icon
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.10" data-path="md/html/character.html">
            
                
                    <a href="../../md/html/character.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.10.</b>
                        
                        实体字符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.11" data-path="md/html/form.html">
            
                
                    <a href="../../md/html/form.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.11.</b>
                        
                        form表单
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.12" data-path="md/html/input.html">
            
                
                    <a href="../../md/html/input.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.12.</b>
                        
                        input标签
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.12.1" data-path="md/html/input/radio.html">
            
                
                    <a href="../../md/html/input/radio.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.12.1.</b>
                        
                        radio
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.12.2" data-path="md/html/input/checkbox.html">
            
                
                    <a href="../../md/html/input/checkbox.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.12.2.</b>
                        
                        checkbox
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.12.3" data-path="md/html/input/select.html">
            
                
                    <a href="../../md/html/input/select.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.12.3.</b>
                        
                        select
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.12.4" data-path="md/html/input/file.html">
            
                
                    <a href="../../md/html/input/file.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.12.4.</b>
                        
                        file
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.12.5" data-path="md/html/input/textarea.html">
            
                
                    <a href="../../md/html/input/textarea.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.12.5.</b>
                        
                        textarea
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.1.12.6" data-path="md/html/input/button.html">
            
                
                    <a href="../../md/html/input/button.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.12.6.</b>
                        
                        button
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter active" data-level="2" data-path="md/css/css.html">
            
                
                    <a href="../../md/css/css.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="md/css/selector.html">
            
                
                    <a href="../../md/css/selector.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        CSS选择器
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1.1" data-path="md/css/selector/element.html">
            
                
                    <a href="../../md/css/selector/element.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.1.</b>
                        
                        元素选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.2" data-path="md/css/selector/class.html">
            
                
                    <a href="../../md/css/selector/class.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.2.</b>
                        
                        类选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.3" data-path="md/css/selector/id.html">
            
                
                    <a href="../../md/css/selector/id.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.3.</b>
                        
                        ID选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.4" data-path="md/css/selector/descendant.html">
            
                
                    <a href="../../md/css/selector/descendant.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.4.</b>
                        
                        后代选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.5" data-path="md/css/selector/child.html">
            
                
                    <a href="../../md/css/selector/child.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.5.</b>
                        
                        子元素选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.6" data-path="md/css/selector/general.html">
            
                
                    <a href="../../md/css/selector/general.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.6.</b>
                        
                        兄弟选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.7" data-path="md/css/selector/adjacent.html">
            
                
                    <a href="../../md/css/selector/adjacent.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.7.</b>
                        
                        相邻选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.8" data-path="md/css/selector/pseudo.html">
            
                
                    <a href="../../md/css/selector/pseudo.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.8.</b>
                        
                        伪类选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.9" data-path="md/css/selector/att.html">
            
                
                    <a href="../../md/css/selector/att.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.9.</b>
                        
                        属性选择符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.1.10" data-path="md/css/selector/elements.html">
            
                
                    <a href="../../md/css/selector/elements.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.10.</b>
                        
                        伪元素选择符
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="md/gitbook/introduce.html">
            
                
                    <a href="../../md/gitbook/introduce.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        gitbook
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" data-path="md/gitbook/use.html">
            
                
                    <a href="../../md/gitbook/use.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.1.</b>
                        
                        gitbook安装及使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="md/gitbook/mardown.html">
            
                
                    <a href="../../md/gitbook/mardown.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        Markdown编辑器语法
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="md/gitbook/plugins.html">
            
                
                    <a href="../../md/gitbook/plugins.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        Markdown插件安装配置
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4" data-path="md/node.js/introduce.html">
            
                
                    <a href="../../md/node.js/introduce.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        NodeJs
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.1" data-path="md/node.js/nvm.html">
            
                
                    <a href="../../md/node.js/nvm.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.1.</b>
                        
                        nvm管理nodejs
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="md/node.js/npm.html">
            
                
                    <a href="../../md/node.js/npm.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.2.</b>
                        
                        npm介绍及使用
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" >H5学习笔记</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="css&#x8BA4;&#x8BC6;">css&#x8BA4;&#x8BC6;</h1>
<h2 id="&#x4EC0;&#x4E48;&#x662F;css">&#x4EC0;&#x4E48;&#x662F;css</h2>
<p>CSS  (Cascading Style Sheets)     &#x5C42;&#x53E0;&#x6837;&#x5F0F;&#x8868;<br>CSS3&#x662F;CSS2&#x7684;&#x5347;&#x7EA7;&#x7248;&#x672C;&#xFF0C;3&#x53EA;&#x662F;&#x7248;&#x672C;&#x53F7;&#xFF0C;&#x5B83;&#x5728;CSS2.1&#x7684;&#x57FA;&#x7840;&#x4E0A;&#x589E;&#x52A0;&#x4E86;&#x5F88;&#x591A;&#x5F3A;&#x5927;&#x7684;&#x65B0;&#x529F;&#x80FD;&#x3002;<br> &#x76EE;&#x524D;&#x4E3B;&#x6D41;&#x6D4F;&#x89C8;&#x5668;chrome&#x3001;safari&#x3001;firefox&#x3001;opera&#x3001;<br>&#x751A;&#x81F3;360&#x90FD;&#x5DF2;&#x7ECF;&#x652F;&#x6301;&#x4E86;CSS3&#x5927;&#x90E8;&#x5206;&#x529F;&#x80FD;&#x4E86;&#xFF0C;IE10&#x4EE5;&#x540E;&#x4E5F;&#x5F00;&#x59CB;&#x5168;&#x9762;&#x652F;&#x6301;CSS3&#x4E86;&#x3002;</p>
<p>&#x4E0D;&#x540C;&#x7684;&#x6D4F;&#x89C8;&#x5668;&#x53EF;&#x80FD;&#x9700;&#x8981;&#x4E0D;&#x540C;&#x7684;&#x524D;&#x7F00;&#x3002;&#x5B83;&#x8868;&#x793A;&#x8BE5;CSS&#x5C5E;&#x6027;&#x6216;&#x89C4;&#x5219;&#x5C1A;&#x672A;&#x6210;&#x4E3A;W3C&#x6807;&#x51C6;&#x7684;&#x4E00;&#x90E8;&#x5206;&#xFF0C;<br>&#x662F;&#x6D4F;&#x89C8;&#x5668;&#x7684;&#x79C1;&#x6709;&#x5C5E;&#x6027;&#xFF0C;&#x867D;&#x7136;&#x76EE;&#x524D;&#x8F83;&#x65B0;&#x7248;&#x672C;&#x7684;&#x6D4F;&#x89C8;&#x5668;&#x90FD;&#x662F;&#x4E0D;&#x9700;&#x8981;&#x524D;&#x7F00;&#x7684;&#xFF0C;<br>&#x4F46;&#x4E3A;&#x4E86;&#x66F4;&#x597D;&#x7684;&#x5411;&#x524D;&#x517C;&#x5BB9;&#x524D;&#x7F00;&#x8FD8;&#x662F;&#x5C11;&#x4E0D;&#x4E86;&#x7684;&#x3002;</p>
<table>
<thead>
<tr>
<th>&#x524D;&#x7F00;</th>
<th>&#x6D4F;&#x89C8;&#x5668;</th>
</tr>
</thead>
<tbody>
<tr>
<td>-webkit</td>
<td>chrome&#x548C;safari</td>
</tr>
<tr>
<td>-moz</td>
<td>firefox</td>
</tr>
<tr>
<td>-ms</td>
<td>IE</td>
</tr>
<tr>
<td>-o</td>
<td>opera</td>
</tr>
</tbody>
</table>
<h2 id="css&#x80FD;&#x505A;&#x4EC0;&#x4E48;">css&#x80FD;&#x505A;&#x4EC0;&#x4E48;</h2>
<p>1.CSS&#x628A;&#x5F88;&#x591A;&#x4EE5;&#x524D;&#x9700;&#x8981;&#x4F7F;&#x7528;&#x56FE;&#x7247;&#x548C;&#x811A;&#x672C;&#x6765;&#x5B9E;&#x73B0;&#x7684;&#x6548;&#x679C;&#x3001;&#x751A;&#x81F3;&#x52A8;&#x753B;&#x6548;&#x679C;&#xFF0C;&#x53EA;&#x9700;&#x8981;&#x77ED;&#x77ED;&#x51E0;&#x884C;&#x4EE3;&#x7801;&#x5C31;&#x80FD;&#x641E;&#x5B9A;&#x3002;&#x6BD4;&#x5982;&#x5706;&#x89D2;&#xFF0C;&#x56FE;&#x7247;&#x8FB9;&#x6846;&#xFF0C;&#x6587;&#x5B57;&#x9634;&#x5F71;&#x548C;&#x76D2;&#x9634;&#x5F71;&#xFF0C;&#x8FC7;&#x6E21;&#x3001;&#x52A8;&#x753B;&#x7B49;&#x3002;
2.CSS&#x7B80;&#x5316;&#x4E86;&#x524D;&#x7AEF;&#x5F00;&#x53D1;&#x5DE5;&#x4F5C;&#x4EBA;&#x5458;&#x7684;&#x8BBE;&#x8BA1;&#x8FC7;&#x7A0B;&#xFF0C;&#x66F4;&#x7075;&#x6D3B;&#x7684;&#x9875;&#x9762;&#x5E03;&#x5C40;&#xFF0C;&#x66F4;&#x5FEB;&#x7684;&#x9875;&#x9762;&#x52A0;&#x8F7D;&#x901F;&#x5EA6;&#x3002;
3.&#x53EF;&#x4EE5;&#x5C06;&#x7AD9;&#x70B9;&#x4E0A;&#x6240;&#x6709;&#x7684;&#x7F51;&#x9875;&#x98CE;&#x683C;&#x90FD;&#x4F7F;&#x7528;&#x4E00;&#x4E2A;CSS&#x6587;&#x4EF6;&#x8FDB;&#x884C;&#x63A7;&#x5236;&#xFF0C;&#x53EA;&#x8981;&#x4FEE;&#x6539;&#x8FD9;&#x4E2A;CSS&#x6587;&#x4EF6;&#x4E2D;&#x76F8;&#x5E94;&#x7684;&#x4EE3;&#x7801;&#xFF0C;&#x90A3;&#x4E48;&#x6574;&#x4E2A;&#x7AD9;&#x70B9;&#x7684;&#x6240;&#x6709;&#x9875;&#x9762;&#x90FD;&#x4F1A;&#x968F;&#x4E4B;&#x53D1;&#x751F;&#x53D8;&#x52A8;&#x3002;
4.CSS&#x53EF;&#x4EE5;&#x652F;&#x6301;&#x591A;&#x79CD;&#x8BBE;&#x5907;,&#x6BD4;&#x5982;&#x624B;&#x673A;,PDA,&#x6253;&#x5370;&#x673A;,&#x7535;&#x89C6;&#x673A;,&#x6E38;&#x620F;&#x673A;&#x7B49;&#x3002;
5.&#x76EE;&#x7684;&#xFF1A;&#x5C06;&#x8868;&#x73B0;&#x4E0E;&#x7ED3;&#x6784;&#x5206;&#x79BB;&#x3002;</p>
<h2 id="css&#x8BED;&#x6CD5;&#x7ED3;&#x6784;">css&#x8BED;&#x6CD5;&#x7ED3;&#x6784;</h2>
<p>CSS &#x8BED;&#x6CD5;&#x7531;&#x4E09;&#x90E8;&#x5206;&#x6784;&#x6210;&#xFF1A;&#x9009;&#x62E9;&#x7B26;&#x3001;&#x5C5E;&#x6027;&#x548C;&#x503C;<br> &#x5C5E;&#x6027;&#xFF08;property&#xFF09;&#x662F;&#x60A8;&#x5E0C;&#x671B;&#x8BBE;&#x7F6E;&#x7684;&#x6837;&#x5F0F;&#x5C5E;&#x6027;&#xFF08;style attribute&#xFF09;&#x3002;&#x6BCF;&#x4E2A;&#x5C5E;&#x6027;&#x6709;&#x4E00;&#x4E2A;&#x503C;&#x3002;&#x5C5E;&#x6027;&#x548C;&#x503C;&#x88AB;&#x5192;&#x53F7;&#x5206;&#x5F00;&#x3002;   </p>
<p>Selector  { Property : Value; }
      &#x2193;             &#x2193;                 &#x2193;
&#x9009;&#x62E9;&#x7B26;     &#x5C5E;&#x6027;            &#x503C;</p>
<pre><code>&lt;style type=&quot;text/css&quot;&gt;
body { background-color:#cccccc;}
&lt;/style&gt;
</code></pre><h2 id="css&#x5982;&#x4F55;&#x5F15;&#x5165;">css&#x5982;&#x4F55;&#x5F15;&#x5165;</h2>
<h3 id="&#x884C;&#x5185;&#x5F15;&#x7528;&#xFF08;&#x6837;&#x5F0F;&#x53EA;&#x80FD;&#x7528;&#x4E8E;&#x5F53;&#x524D;&#x5143;&#x7D20;&#xFF09;">&#x884C;&#x5185;&#x5F15;&#x7528;&#xFF08;&#x6837;&#x5F0F;&#x53EA;&#x80FD;&#x7528;&#x4E8E;&#x5F53;&#x524D;&#x5143;&#x7D20;&#xFF09;</h3>
<p>&#x884C;&#x5185;&#x5F15;&#x7528;&#x662F;&#x6307;&#x5C06;CSS&#x6837;&#x5F0F;&#x7F16;&#x7801;&#x76F4;&#x63A5;&#x5199;&#x5728;HTML &#x6807;&#x7B7E;&#x4E2D;&#x7684;style&#x5C5E;&#x6027;&#x91CC;&#x3002;
&#x6CE8;&#x610F;&#x8FD9;&#x79CD;&#x65B9;&#x5F0F;&#x7684;&#x5F15;&#x5165;CSS&#xFF0C;&#x662F;&#x4E0D;&#x9700;&#x8981;&#x5199;&#x9009;&#x62E9;&#x5668;&#x7684;&#x3002;</p>
<pre><code>&lt;body style=&quot;background-color:#ccccc;&quot;&gt;
&lt;h1 style=&quot;font-size:12px; color:#ff0000;&quot;&gt;&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x6807;&#x9898;&lt;/h1&gt;
</code></pre><p><strong>&#x6CE8;&#x610F;&#x70B9;&#xFF1A;</strong>    &#x4E0D;&#x63A8;&#x8350;&#x7684;&#x5199;&#x6CD5;&#xFF0C;&#x56E0;&#x4E3A;&#x7ED3;&#x6784;&#x6DF7;&#x4E71;&#x4E14;&#x4E0D;&#x5229;&#x4E8E;&#x91CD;&#x7528;</p>
<h3 id="&#x9875;&#x5185;&#x5F15;&#x7528;&#xFF08;&#x6837;&#x5F0F;&#x53EA;&#x80FD;&#x9488;&#x5BF9;&#x5F53;&#x524D;html&#x6587;&#x4EF6;&#xFF09;">&#x9875;&#x5185;&#x5F15;&#x7528;&#xFF08;&#x6837;&#x5F0F;&#x53EA;&#x80FD;&#x9488;&#x5BF9;&#x5F53;&#x524D;HTML&#x6587;&#x4EF6;&#xFF09;</h3>
<p>&#x9875;&#x5185;&#x5F15;&#x7528;&#x4F5C;&#x4E3A;&#x9875;&#x9762;&#x4E2D;&#x7684;&#x4E00;&#x4E2A;&#x5355;&#x72EC;&#x90E8;&#x5206;&#xFF0C;&#x7531;<style></style>&#x6807;&#x7B7E;&#x5B9A;&#x4F4D;&#x5728;<head></head>&#x4E4B;&#x4E2D;&#x3002;</p>
<pre><code>&lt;head&gt;
&lt;style type=&quot;text/css&quot;&gt;
body{
background-color:#cccccc;
}
&lt;/style&gt;
&lt;/head&gt;
</code></pre><p><strong>&#x6CE8;&#x610F;&#x70B9;&#xFF1A;</strong>&#x8BE5;&#x5199;&#x6CD5;&#x901A;&#x5E38;&#x4E0D;&#x63A8;&#x8350;&#x4F7F;&#x7528;&#xFF0C;&#x56E0;&#x4E3A;&#x53EA;&#x80FD;&#x63A7;&#x5236;&#x5F53;&#x524D;&#x9875;&#x9762;&#xFF0C;&#x4E0D;&#x80FD;&#x91CD;&#x7528;&#x5230;&#x5176;&#x4ED6;&#x9875;&#x9762;</p>
<h3 id="&#x5916;&#x90E8;&#x5F15;&#x5165;&#xFF08;&#x53EF;&#x4EE5;&#x9488;&#x5BF9;&#x4E00;&#x4E2A;&#x6216;&#x591A;&#x4E2A;&#x7684;html&#x6587;&#x4EF6;&#xFF09;">&#x5916;&#x90E8;&#x5F15;&#x5165;&#xFF08;&#x53EF;&#x4EE5;&#x9488;&#x5BF9;&#x4E00;&#x4E2A;&#x6216;&#x591A;&#x4E2A;&#x7684;HTML&#x6587;&#x4EF6;&#xFF09;</h3>
<p>&#x5916;&#x90E8;&#x6837;&#x5F0F;&#x8868;&#x662F;CSS&#x5E94;&#x7528;&#x4E2D;&#x6700;&#x597D;&#x7684;&#x4E00;&#x79CD;&#x5F62;&#x5F0F;&#xFF0C;&#x5B83;&#x5C06;CSS&#x6837;&#x5F0F;&#x4EE3;&#x7801;&#x5355;&#x72EC;<br>&#x653E;&#x5728;&#x4E00;&#x4E2A;&#x5916;&#x90E8;&#x6587;&#x4EF6;&#x4E2D;&#xFF0C;&#x518D;&#x7531;&#x7F51;&#x9875;&#x8FDB;&#x884C;&#x8C03;&#x7528;&#x3002;</p>
<pre><code>&lt;head&gt;
&lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;style.css&quot; /&gt;
&lt;/head&gt;
</code></pre><p><strong>&#x6CE8;&#x610F;&#xFF1A;</strong>&#x6CE8;&#x610F;&#x8BED;&#x6CD5;&#x7684;&#x5199;&#x6CD5;&#x53EF;&#x4EE5;&#x6709;&#x6548;&#x7684;&#x91CD;&#x7528;&#x6837;&#x5F0F;</p>
<h3 id="&#x4E09;&#x79CD;&#x5F15;&#x5165;&#x65B9;&#x5F0F;&#x7684;&#x4F18;&#x5148;&#x7EA7;&#x662F;&#xFF1A;&#x5C31;&#x8FD1;&#x539F;&#x5219;&#xFF0C;&#x8D8A;&#x63A5;&#x8FD1;&#x5143;&#x7D20;&#xFF0C;&#x4F18;&#x5148;&#x7EA7;&#x8D8A;&#x9AD8;">&#x4E09;&#x79CD;&#x5F15;&#x5165;&#x65B9;&#x5F0F;&#x7684;&#x4F18;&#x5148;&#x7EA7;&#x662F;&#xFF1A;&#x5C31;&#x8FD1;&#x539F;&#x5219;&#xFF0C;&#x8D8A;&#x63A5;&#x8FD1;&#x5143;&#x7D20;&#xFF0C;&#x4F18;&#x5148;&#x7EA7;&#x8D8A;&#x9AD8;</h3>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../md/html/input/button.html" class="navigation navigation-prev " aria-label="Previous page: button"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../md/css/selector.html" class="navigation navigation-next " aria-label="Next page: CSS选择器"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-expandable-chapters-interactive/expandable-chapters.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"expandable-chapters-interactive":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
